package com.testword.mappers;

import com.testword.entity.vo.UserLoginInfor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserLoginInfoMapper {

    void insertRegister(UserLoginInfor userLoginInfor);

    /**
     * @param studentId
     * @return
     */
    @Select("SELECT COUNT(1) > 0 FROM user_info WHERE student_id = #{studentId}")
    boolean existsByStudentId(String studentId);
}
